package com.ifengchao.util.sina;

import java.util.Properties;

public class FtpEnvUtil {
	public FtpEnvUtil(){}
	private static Properties props = new Properties(); 
	static{
		
		try {
			//thridPartyUrl.properties
			props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("config/ftp.properties"));
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	public static String getValue(String key){
		return props.getProperty(key);
	}

    public static void updateProperties(String key,String value) {    
            props.setProperty(key, value); 
    } 
}
